import axios from 'axios'
import base from '@/utils/config/base' 

export const getDeviceGroup = function(params) {
  return axios({
    url: base.prod + '/getDeviceGroup',
    method: 'get',
    params: params
  })
}

export const getDeviceList = function(params) {
  return axios({
    url: base.prod + '/getDeviceList',
    method: 'get',
    params: params
  })
}

export const AddDeviceWeb = function(params) {
  return axios({
    url: base.prod + '/AddDeviceWeb',
    method: 'post',
    data: params,
    headers: {
      "Content-Type": "application/json;charset=UTF-8"
    }
  })
}

export const deleteDevice = function(params) {
  return axios({
    url: base.prod + '/deleteDevice',
    method: 'get',
    params: params
  })
}

export const getDevLogList = function(params) {
  return axios({
    url: base.prod + '/getDevLogList',
    method: 'get',
    params: params
  })
}
